package com.bis.common.entity;

import java.util.Date;

import com.bis.framework.annotation.TableAnnotation;
import com.bis.framework.base.entity.BaseEntity;

/**
 * SystemEntity.java
 *
 * 模 块：机构单位
 */
@TableAnnotation(table = "company")
public class SystemEntity extends BaseEntity
{

	private static final long	serialVersionUID	= 1L;

	//唯一性编号
	@TableAnnotation
	private String				id;
	//编码
	@TableAnnotation
	private String				code;
	//上级机构编号
	@TableAnnotation
	private String				parentid;
	//机构名称
	@TableAnnotation
	private String				name;
	//邮政编码
	@TableAnnotation
	private String				zip;
	//通信地址
	@TableAnnotation
	private String				address;
	//机构层次
	//  单位类型A：A类单位；B：B类单位；C：C类单位
	@TableAnnotation
	private String				org_level;
	//地区代码
	@TableAnnotation
	private String				area_code;

	@TableAnnotation
	private String				sort_code;
	//备注
	@TableAnnotation
	private String				memo;
	//序号码
	@TableAnnotation
	private Integer				index_code;
	//是否启用
	@TableAnnotation
	private Integer				in_use;
	//最近修改时间
	@TableAnnotation
	private Date				last_modify_time;
	//是否被删除
	@TableAnnotation
	private Integer				is_delete;
	//别名
	@TableAnnotation
	private String				alias;
	//责任部门
	@TableAnnotation
	private String				duty_dept;

	//发文签收时间
	private Date				acceptTime;
	private Integer				sendType			= 0;

	public Integer getSendType()
	{
		return sendType;
	}

	public void setSendType(Integer sendType)
	{
		this.sendType = sendType;
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getArea_code()
	{
		return area_code;
	}

	public void setArea_code(String area_code)
	{
		this.area_code = area_code;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getHrefIn_user()
	{
		if (in_use == 1)
		{
			return "禁用";
		}
		else
		{
			return "激活";
		}
	}

	public String getIn_userName()
	{
		if (in_use == 1)
		{
			return "是";
		}
		else
		{
			return "否";
		}
	}

	public String getXmlString()
	{
		return "<company id=\"" + this.id + "\" name=\"" + this.name + "\" send_type=\"" + this.sendType + "\" />";
	}

	public Integer getIn_use()
	{
		return in_use;
	}

	public void setIn_use(Integer in_use)
	{
		this.in_use = in_use;
	}

	public Integer getIndex_code()
	{
		return index_code;
	}

	public void setIndex_code(Integer index_code)
	{
		this.index_code = index_code;
	}

	public Date getLast_modify_time()
	{
		return last_modify_time;
	}

	public void setLast_modify_time(Date last_modify_time)
	{
		this.last_modify_time = last_modify_time;
	}

	public String getMemo()
	{
		return memo;
	}

	public void setMemo(String memo)
	{
		this.memo = memo;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getOrg_level()
	{
		return org_level;
	}

	public void setOrg_level(String org_level)
	{
		this.org_level = org_level;
	}

	public String getParentid()
	{
		return parentid;
	}

	public void setParentid(String parentid)
	{
		this.parentid = parentid;
	}

	public String getSort_code()
	{
		return sort_code;
	}

	public void setSort_code(String sort_code)
	{
		this.sort_code = sort_code;
	}

	public String getZip()
	{
		return zip;
	}

	public void setZip(String zip)
	{
		this.zip = zip;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getAlias()
	{
		return alias;
	}

	public void setAlias(String alias)
	{
		this.alias = alias;
	}

	public String getDuty_dept()
	{
		return duty_dept;
	}

	public void setDuty_dept(String duty_dept)
	{
		this.duty_dept = duty_dept;
	}

	public Integer getIs_delete()
	{
		return is_delete;
	}

	public void setIs_delete(Integer is_delete)
	{
		this.is_delete = is_delete;
	}

	public Date getAcceptTime()
	{
		return acceptTime;
	}

	public void setAcceptTime(Date acceptTime)
	{
		this.acceptTime = acceptTime;
	}

}